package com.gpframework.common.weixin.common.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * 微信通用接口凭证
 *
 * @author mahb
 */
@Data
@ToString
@JsonInclude(JsonInclude.Include.NON_NULL)
public class WeiXinOauth2Token implements Serializable {
    // 获取到的凭证
    private String accessToken;
    // 凭证有效时间，单位：秒
    private int expiresIn;
    private String refeshToken;
    private String openId;
    private String scope;
    private Integer errcode;
    private String errmsg;
}
